import React from 'react';
import {
  Router,
  Route
} from 'dva/router';
import NotFound from './routes/NotFound';

import HomePage from './routes/HomePage';
import MemberLevel from './routes/MemberLevel';
import UserGroup from './routes/UserGroup';
import GroupList from './routes/GroupList';

import BusinessData from './routes/BusinessData';
import DataGrow from './routes/DataGrow';
import Purchase from './routes/Purchase';
import NewMatch from './routes/NewMatch';
import MatchGrow from './routes/MatchGrow';
import UserView from './routes/UserView';

import UserEdit from './routes/UserEdit';
import PersonsInfo from './routes/PersonsInfo';
import PersonsCustom from './routes/PersonsCustom';
import PersonsSource from './routes/PersonsSource';
import ProductNeed from './routes/ProductNeed';
//import Marketing from './routes/Marketing';
import MarketingOnline from './routes/MarketingOnline';
import MarketingOffline from './routes/MarketingOffline';
import UserViscosity from './routes/UserViscosity';
import UserActivity from './routes/UserActivity';
import UserValue from './routes/UserValue';
import SocialInfluence from './routes/SocialInfluence';
import BuyChannel from './routes/BuyChannel';

import CRMSale from './routes/CRMSale';
import CRMRecruit from './routes/CRMRecruit';
import CRMBack from './routes/CRMBack';
import CRMStore from './routes/CRMStore';
import CRMUserIndex from './routes/CRMUserIndex';
import CRMActivity from './routes/CRMActivity';
import CRMProduct from './routes/CRMProduct';
import CRMUserInfo from './routes/CRMUserInfo';




/* eslint react/prop-types:0 */
export default function({
  history
}) {
  return (
    <Router history={history}>
      <Route path="/" component={HomePage} />
      <Route path="/MemberLevel" component={MemberLevel} />
      <Route path="/UserGroup" component={UserGroup} />
      <Route path="/GroupList" component={GroupList} />

      <Route path="/BusinessData" component={BusinessData} />
      <Route path="/DataGrow" component={DataGrow} />
      <Route path="/Purchase" component={Purchase} />
      <Route path="/NewMatch" component={NewMatch} />
      <Route path="/MatchGrow" component={MatchGrow} />
      <Route path="/UserView" component={UserView} />

      <Route path="/UserEdit" component={UserEdit} />
      <Route path="/PersonsInfo" component={PersonsInfo} />
      <Route path="/PersonsCustom" component={PersonsCustom} />
      <Route path="/PersonsSource" component={PersonsSource} />
      <Route path="/ProductNeed" component={ProductNeed} />
      
      <Route path="/MarketingOnline" component={MarketingOnline} />
      <Route path="/MarketingOffline" component={MarketingOffline} />
      <Route path="/UserViscosity" component={UserViscosity} />
      <Route path="/UserActivity" component={UserActivity} />
      <Route path="/UserValue" component={UserValue} />
      <Route path="/SocialInfluence" component={SocialInfluence} />
      <Route path="/BuyChannel" component={BuyChannel} />

      <Route path="/CRMSale" component={CRMSale} />
      <Route path="/CRMRecruit" component={CRMRecruit} />
      <Route path="/CRMBack" component={CRMBack} />
      <Route path="/CRMStore" component={CRMStore} />
      <Route path="/CRMUserIndex" component={CRMUserIndex} />
      <Route path="/CRMActivity" component={CRMActivity} />
      <Route path="/CRMProduct" component={CRMProduct} />
      <Route path="/CRMUserInfo" component={CRMUserInfo} />

      <Route path="*" component={NotFound} />
    </Router>
  );
}

//<Route path="/Marketing" component={Marketing} />